package com.hd.homework0412.service.impl;



import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hd.homework0412.dao.ProductDao;
import com.hd.homework0412.entity.Product;

import com.hd.homework0412.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

@Service
public class ProductServiceImpl extends ServiceImpl<ProductDao,Product> implements ProductService{
    @Autowired
    ProductDao productDao;
    @Override
    public List<Product> topThree() {
        return productDao.topThree();
    }

}
